<!--{template common/header}-->
<div class="nav">
	<div class="nav_left"><a href="home.php?mod=space&do=profile&mycenter=1&mobile=2"><i class="fa fa-angle-left fa-15x"></i></a></div>
	<div class="nav_right"><a href="javascript:;" onclick="$('#profile').submit();">{lang save}</a></div>
	<div class="nav_center">
		<a href="javascript:;"><!--{echo $lang['amendprofile'];}--></a>
	</div>
</div>

<iframe id="frame_profile" name="frame_profile" style="display: none"></iframe>
<div class="spacecp_profile">
<form action="home.php?mod=spacecp&ac=profile&op=$operation" method="post" id="profile"  enctype="multipart/form-data" autocomplete="off" target="frame_profile" >
	<input type="hidden" value="{FORMHASH}" name="formhash" />
	<input type="hidden" name="profilesubmit" value="true">
    <li onclick="location.href='home.php?mod=spacecp&ac=avatar&mobile=2'">
        <div class="sp_title">{lang memcp_avatar}</div>
        <div class="sp_html" id="td_customstatus">
            <div class="avatar">
            <img class="" src="<!--{avatar($space[uid], big, true)}-->" />
            </div>
        </div>
    </li>
	<!--{loop $settings $key $value}-->
	<li>
	<!--{if $value[available]}-->
		<div class="sp_title"><!--{if $value[required]}-->*<!--{/if}-->$value[title]</div>
		<div class="sp_html">$htmls[$key]</div>
		<!--{if $privacy=='2'}-->
		<div class="sp_privacy">
			<!--{if $vid}-->
			<input type="hidden" name="privacy[$key]" value="3" />
			<!--{else}-->
			<select name="privacy[$key]">
				<option value="0"{if $privacy[$key] == "0"} selected="selected"{/if}>{lang open_privacy}</option>
				<option value="1"{if $privacy[$key] == "1"} selected="selected"{/if}>{lang friend_privacy}</option>
				<option value="3"{if $privacy[$key] == "3"} selected="selected"{/if}>{lang secrecy}</option>
			</select>
			<!--{/if}-->
		</div>
		<!--{/if}-->
	<!--{/if}-->
	</li>
	<!--{/loop}-->
    <!--{if $allowcstatus && in_array('customstatus', $allowitems)}-->
    <li>
        <div class="sp_title">{lang permission_basic_status}</div>
        <div class="sp_html" id="td_customstatus">
            <input type="text" value="$space[customstatus]" name="customstatus" id="customstatus" class="px" />
            <div class="rq mtn" id="showerror_customstatus"></div>
        </div>
    </li>
    <!--{/if}-->


    <!--{if $_G['group']['maxsigsize'] && in_array('sightml', $allowitems)}-->
    <li>
        <div class="sp_title">{lang personal_signature}</div>
        <div class="sp_html">
            <textarea rows="3" cols="80" name="sightml" id="sightmlmessage" class="pt" onkeydown="ctrlEnter(event, 'profilesubmitbtn');">$space[sightml]</textarea>
         </div>

    </li>
    <!--{/if}-->
</form>
</div>

<script type="text/javascript">

    function show_error(fieldid, extrainfo) {


        var elem = $('#showerror_'+fieldid);
        if(elem) {

            extrainfo = (typeof extrainfo == "string") ? extrainfo : "";

            $('#showerror_'+fieldid).html("{lang check_date_item} " + extrainfo);
            $("#"+fieldid).focus();
        }
    }
    function show_success(message) {
        message = message == '' ? '{lang update_date_success}' : message;

        popup.open('{lang update_date_success}', 'alert');
        setTimeout(function() {
            top.window.location.href = top.window.location.href;
        }, '1500');

    }

</script>

<!--{eval $nob_nav=1;}-->
<!--{template common/footer}-->